package at.codebase.db.entities;

import com.googlecode.objectify.Ref;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;

@Entity
public class EMyExternalItemFeedback {

	@Id
	private Long feedbackId;
	@Index
	private Ref<EItem> targetItem;
	private String username;
	@Index
	private String userId;
	private float rating;
	private String feedbackText;
	@Index
	private Ref<EApiPartner> partner;

	public EMyExternalItemFeedback(EApiPartner partner, EItem targetItem, String user_name,
			String user_id, float rating, String feedbackText) {
		this.partner = Ref.create(partner);
		this.targetItem = Ref.create(targetItem);
		this.username = user_name;
		this.userId = user_id;
		this.rating = rating;
		this.feedbackText = feedbackText;
	}

	public Long getFeedbackId() {
		return feedbackId;
	}

	public void setFeedbackId(Long feedbackId) {
		this.feedbackId = feedbackId;
	}

	public Ref<EItem> getTargetItem() {
		return targetItem;
	}

	public void setTargetItem(Ref<EItem> targetItem) {
		this.targetItem = targetItem;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public float getRating() {
		return rating;
	}

	public void setRating(float rating) {
		this.rating = rating;
	}

	public String getFeedbackText() {
		return feedbackText;
	}

	public void setFeedbackText(String feedbackText) {
		this.feedbackText = feedbackText;
	}

	public Ref<EApiPartner> getPartner() {
		return partner;
	}

	public void setPartner(Ref<EApiPartner> partner) {
		this.partner = partner;
	}

}
